Content Pack for Splunk Synthetic Monitoring

Content Pack for Splunk Synthetic Monitoring

Create a custom configuration of the Content Pack for Splunk Synthetic Monitoring

The out-of-the-box configuration of the services in this content pack includes the most common KPIs for each of the synthetic services. See the KPI Reference for this content pack for more information. If the out-of-the-box configuration of this content pack meets your needs, see Use the Content Pack for Splunk Synthetic Monitoring to get started using the content pack.

To monitor different synthetic KPIs in your configuration of this content pack, use the instructions in this topic to create a custom configuration of the content pack. You might also want to monitor select synthetic checks, which also require a custom configuration of the Content Pack for Splunk Synthetic Monitoring, as explained below.

Step 1: Get your IDs for the synthetic checks

To start, get the IDs for each synthetic check that you want to monitor within your custom configuration of the content pack. To get your check IDs, follow these steps:

  1. Go to the Search in the ITSI menu.
  2. Run the | synthetics checks search command.
  3. Locate the checks you want to monitor in the content pack and save their IDs to use in later configuration steps. "Screenshot of Synthetics checks search command results"

Step 2: Clone the service template

Next, create a clone the template service included in the content pack one per check you want to monitor.

  1. Go to Configuration > Services in the ITSI menu.
  2. Locate the Splunk Synthetic Monitoring Check Template - (start here) service.
  3. Select Edit > Clone.
  4. Enter a service Title, Description, and select a Team.
  5. Click Clone.

Step 3: Configure the KPIs

Next, you need to configure the KPIs for the service you created. By default, these KPIs are included in the template service you cloned.

  • Dom Load Time
  • First Interactive Time
  • Full Loaded Time
  • Lighthouse Score
  • Server Errors
  • Speed Index
  • Total Blocking Time
  • Total Content Bytes
  • Visually Complete Time

Follow these steps to configure your KPIs:

  1. Go to Configuration > Services in the ITSI menu.
  2. Select your cloned service. The cloned service is preconfigured with common KPIs. You can add KPIs that are supported by Splunk Synthetics Monitoring, as documented in KPI Reference. You can also delete the KPIs you don't want to use.
  3. For each KPI you want to monitor within the content pack, follow these steps to add your check ID:
    1. Select the KPI.
    2. Expand the Search and Calculate section.
    3. Select Edit on the Source.
    4. In the search SPL, update the id with check ID for the check you want to monitor. "Screenshot of id in SPL of KPI"
  4. Select Finish.
  5. Select Yes to dismiss the warning as this isn't an unsafe change because you are creating a new service.

You can remove any default KPI that you don't want to include in your service. To do so, click the X icon to the right of the KPI and confirm that you want to delete it.

Add KPIs

You can also add KPIs that aren't included in the default list of KPIs. For a full list of KPIs, go to Synthetic Dashboards > Synthetic Monitoring KPI Browser from the Splunk Synthetic Monitoring Add-on menu.

Follow these steps to add a KPI:

  1. Select Clone to clone an existing synthetic KPI.
  2. Select a service in the left column to locate a KPI to clone. You can clone any synthetic KPI as we'll be customizing it to use the correct metric in later steps.
  3. Select the KPI and select Clone.
  4. Select the newly-cloned KPI.
  5. Select the pencil icon next to the KPI name to rename the cloned KPI.
  6. Enter a KPI name and select Done.
  7. Expand the Search and Calculate section.
  8. Select Edit on the Source.
  9. Replace the existing KPI metric with the KPI metric you want to use in the Search. The metric is present in the search twice.

    For example, in this search, the metric name is content_bytes:
    | synthetics kpi id=000001 metric_name=content_bytes | spath | table data.content_bytes, meta.check_id

    If you wanted to use html_bytes instead, the search would look like this:
    | synthetics kpi id=000001 metric_name=html_bytes | spath | table data.html_bytes, meta.check_id
  10. Replace the metric in the Threshold Field.
    CP for Synthetic Monitoring - Add KPI 2.png
  11. Select Finish to complete the KPI setup. You can also select Next to optionally customize your KPI.

Step 4: Configure the entity rule

After cloning the service template and configuring or adding KPIs, you have to update the entity rules to use the check ID that you want to monitor in the content pack. To do so, follow these steps:

  1. Within the cloned service select the Entities tab.
  2. Delete the existing ID value.
  3. Enter the check ID you want to monitor.
  4. Select Save > Save or Save > Save and Enable if you are ready to enable the service. Entity-rules-slice.png

Step 5: Configure KPI thresholds

Go through the KPIs and configure the aggregate and per-entity thresholds values to reasonable defaults based on your use case. For steps to configure KPI thresholds, see Configure KPI thresholds in ITSI in the Service Insights manual.

KPI alerting

To receive alerts for KPIs when aggregate KPI threshold values change, see Receive alerts when KPI severity changes in ITSI. ITSI generates notable events on the Episode Review page based on the alerting rules you configure.

Step 6: Configure service dependencies

After you've created services for all the checks you want to monitor in your custom configuration of the content pack, you might want to create dependencies. This is particularly useful if you make use of the tree view in the service analyzer. See Add service dependencies in ITSI for steps to do so.

Step 7: Customize and save the Service Analyzer

By default, your newly-configured services are added to the default analyzer. To create a custom service analyzer that includes only your custom synthetic services service, use the Filter services field to show only custom synthetic checks. When the service analyzer is filtered to the checks you want to monitor, select Save as... to create a new service analyzer.

An example of the default analyzer is shown below:

Default service analyzer example

A custom service analyzer might look like the following example:

Custom service analyzer example

Last modified on 09 July, 2023
Install and configure the Content Pack for Splunk Synthetic Monitoring   Use the Content Pack for Splunk Synthetic Monitoring

This documentation applies to the following versions of Content Pack for Splunk Synthetic Monitoring: 1.0.2


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters